<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/12/1
 * Time: 16:04
 */
namespace vendor\cord;
class user
{
    private static $userCount;
    public function __construct()
    {
        self::$userCount++;
        echo '创建用户';
    }
    public function register(){
        echo '注册';
    }
    public function login(){
        echo '登入';
    }

    public function mylevel(){
        echo '我是普通用户';
    }
    public function __destruct()
    {
        self::$userCount--;
        echo '删除对象';
    }
    public static function getonlinenum(){
       return self::$userCount;
    }
}